package com.douxg.fastCoding.spring.util;

/**
 * @Description
 * @Auther douxg
 * @Date 2020/6/14 17:41
 */
public class PageUtil {
    public static int handlePageIndex(Integer pageIndex) {
        if (pageIndex == null || pageIndex <= 0) {
            return 1;
        }
        return pageIndex;
    }

    public static int handlePageSize(Integer pageSize) {
        if (pageSize == null || pageSize <= 0) {
            return 10;
        }
        return pageSize;
    }
}
